package view;

import pojo.Department;
import pojo.Employee;

import java.util.Iterator;
import java.util.List;

public class DepartmentView {
    public static void printAllDepartment(List list){
        Iterator iterator = list.iterator();
        System.out.println("部门ID\t部门名称");
        while(iterator.hasNext()){
            Department department = (Department) iterator.next();
            System.out.println(department.getId()+"\t" + department.getName());
        }
        System.out.println();
    }
}
